﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="PurchaseReturnEdit.aspx.cs" Inherits="Main_Inventory_PurchaseReturnEdit" %>
<%@ Register Src="~/User Controls/PageHeading.ascx" TagName="heading" TagPrefix="acc" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="AjaxControl" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Purchase Return Edit</title>
    <link rel="Stylesheet" href="../../Styles/accounts.css" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" EnablePartialRendering="true" runat="server">
    </asp:ScriptManager>
    <acc:heading id="pagehead" runat="server" headingtext="Purchase Return Edit" />
    <div class="divmain" style="width: 90%; margin-left: 5%; margin-right: 5%; margin-top: 20px;">
        <div style="margin-left: 5%; margin-right: 5%; width: 90%" align="center">
            <asp:Label ID="lblMsg" runat="server" Font-Bold="true"></asp:Label>
            <asp:HiddenField ID="hidCountReturnRow" runat="server" Value="0" />
        </div>
        <asp:HiddenField ID="hidTranFormatType" runat="server" />
        <table class="tablecontent" style="width: 100%">
            <tr>
                <td colspan="4" class="headtd">
                    Purchase Return
                </td>
            </tr>
            <tr>
                <td style="width: 12%">
                    Bill Format<span style="color: Red">*</span>
                    <asp:HiddenField ID="hidTaxLevel" runat="server" />
                </td>
                <td style="width: 35%;">
                    <asp:DropDownList ID="ddlFormat" runat="server" Width="175px" CssClass="dropdown" OnSelectedIndexChanged="ddlFormat_OnSelectedIndexChanged"
                        AutoPostBack="true">
                    </asp:DropDownList>
                </td>
                <td style="width: 12%">
                    Supplier<span style="color: Red">*</span>
                </td>
                <td style="width: 41%">
                    <asp:DropDownList ID="ddlSupplier" runat="server" Width="240px" CssClass="dropdown"
                        AutoPostBack="true">
                    </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td>
                    Voucher No.<span style="color: Red">*</span>
                </td>
                <td>
                    <asp:TextBox ID="txtPrefix" runat="server" Width="70px" CssClass="input" onKeyPress="return false"
                        onKeydown="return false"></asp:TextBox>
                    <ajaxcontrol:textboxwatermarkextender id="prefixWater" runat="server" targetcontrolid="txtPrefix"
                        watermarktext="Prefix" watermarkcssclass="watermark_textbox"></ajaxcontrol:textboxwatermarkextender>
                    <asp:TextBox ID="txtVoucher" runat="server" Width="70px" CssClass="inputnumber" ValidationGroup="V"
                        MaxLength="10"></asp:TextBox>
                    <ajaxcontrol:textboxwatermarkextender id="voucherWater" runat="server" targetcontrolid="txtVoucher"
                        watermarktext="Number" watermarkcssclass="watermark_textbox"></ajaxcontrol:textboxwatermarkextender>
                    <asp:TextBox ID="txtSuffix" runat="server" Width="70px" CssClass="input" onKeyPress="return false"
                        onKeydown="return false"></asp:TextBox>
                    <ajaxcontrol:textboxwatermarkextender id="suffixWater" runat="server" targetcontrolid="txtSuffix"
                        watermarktext="Suffix" watermarkcssclass="watermark_textbox"></ajaxcontrol:textboxwatermarkextender>
                </td>
                <td>
                    Tax Group<span style="color: Red">*</span>
                </td>
                <td>
                    <asp:DropDownList ID="ddlTaxGroup" runat="server" AutoPostBack="true" CssClass="dropdown">                    </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td>
                    Date<span style="color: Red">*</span>
                </td>
                <td>
                    <asp:TextBox ID="txtDate" runat="server" Width="120px" CssClass="input" ValidationGroup="V"></asp:TextBox>
                    <asp:ImageButton ID="btnDate" runat="server" ImageUrl="~/Images/calendar.gif" />
                    <ajaxcontrol:calendarextender id="cal" runat="server" popupbuttonid="btnDate" targetcontrolid="txtDate"
                        format="dd/MM/yyyy"></ajaxcontrol:calendarextender>
                    <ajaxcontrol:maskededitextender id="maskExt" runat="server" masktype="Date" mask="99/99/9999"
                        targetcontrolid="txtDate" culturename="en-GB"></ajaxcontrol:maskededitextender>
                    <ajaxcontrol:maskededitvalidator id="maskValid" runat="server" controlextender="maskExt"
                        invalidvaluemessage="Invalid Date" isvalidempty="true" display="Dynamic" validationgroup="V"
                        controltovalidate="txtDate"></ajaxcontrol:maskededitvalidator>
                </td>
                <td>
                    Cash/Credit
                </td>
                <td>
                    <div style="float: left">
                        <asp:RadioButtonList ID="rbtCashCredit" runat="server" RepeatDirection="Horizontal">
                            <asp:ListItem Text="Cash" Value="0" Selected="True"></asp:ListItem>
                            <asp:ListItem Text="Credit" Value="1"></asp:ListItem>
                        </asp:RadioButtonList>
                    </div>
                    <div style="float: left">
                        &nbsp;<asp:TextBox ID="txtCreditDay" runat="server" onKeyPress="return isNumberKey(this.id,event)"
                            Width="60px" CssClass="inputnumber" MaxLength="3"></asp:TextBox>&nbsp;Days
                    </div>
                    <div style="clear: both">
                    </div>
                </td>
            </tr>
           
            <tr>
                <td>
                    Bill Ref: <span style="color: Red">*</span>
                </td>
                <td>
                    <asp:TextBox ID="txtBillRef1" runat="server" Width="90px" CssClass="input" ValidationGroup="V"
                        MaxLength="20"></asp:TextBox>
                    <asp:TextBox ID="txtBillRef2" runat="server" Width="80px" CssClass="input" ValidationGroup="V"></asp:TextBox>
                    <ajaxcontrol:calendarextender id="extCalbill" runat="server" format="dd/MM/yyyy"
                        targetcontrolid="txtBillRef2"></ajaxcontrol:calendarextender>
                    <ajaxcontrol:maskededitextender id="maskRefDate" runat="server" mask="99/99/9999"
                        targetcontrolid="txtBillRef2" masktype="Date" culturename="en-GB"></ajaxcontrol:maskededitextender>
                    <ajaxcontrol:maskededitvalidator id="maskValidRef" runat="server" controlextender="maskRefDate"
                        controltovalidate="txtBillRef2" validationgroup="V" invalidvaluemessage="*"></ajaxcontrol:maskededitvalidator>
                </td>
                <td colspan="2"></td>
            </tr>
        </table>
        <asp:Panel ID="PanelTblBillLevel" runat="server">
             <div id="wrapper">    
                        <ul class="tabs">
                            <li><a href="javascript:void(0)" class="defaulttab" rel="tabGeneralBillLevel">General</a></li>
                            <li><a href="javascript:void(0)" rel="tabOtherBillLevel">Other</a></li>                   
                        </ul> 
             </div>
             <asp:HiddenField ID="hidControlBillLevel" Value="0" runat="server" />       
            <table id="TblBillLevel" runat="server" class="tablecontent" style="margin-top:5px;" >
                <tr id="trBillLevel" runat="server" visible="false">
                    <td style ="width:25%; border-right:1px solid #818181; border-bottom:1px solid #818181; text-align:center; font-weight:bold" class="headtd">Item(s)</td>
                    <td style ="width:15%; border-right:1px solid #818181; border-bottom:1px solid #818181; text-align:center; font-weight:bold" class="headtd">Unit</td>
                    <td style ="width:20%; border-bottom:1px solid #818181; text-align:center; font-weight:bold" class="headtd">Qty.</td>
                    <td style ="width:10px; border-right:1px solid #818181; border-bottom:1px solid #818181;" class="headtd">&nbsp;</td>
                    <td style ="width:20%; border-right:1px solid #818181; border-bottom:1px solid #818181; text-align:center; font-weight:bold" class="headtd">Rate</td>                          
                    <td style ="width:20%; border-bottom:1px solid #818181; text-align:center; font-weight:bold" class="headtd">Item Amt</td>                        
                </tr>
            </table>
        </asp:Panel>
        
        <asp:Panel ID="PanelTblItemLevel" runat="server" Visible="false" style="margin-top:5px;">
            <table>
                <tr id="trItemLevel" runat="server" visible="false">
                    <td style ="width:10%; border-right:1px solid #818181; border-bottom:1px solid #818181; text-align:center; font-weight:bold" class="headtd">Item(s)</td>
                    <td style ="width:10%; border-right:1px solid #818181; border-bottom:1px solid #818181; text-align:center; font-weight:bold" class="headtd">Unit</td>
                    <td style ="width:10%; border-bottom:1px solid #818181; text-align:center; font-weight:bold" class="headtd">Qty.</td>
                    <td style ="width:10px; border-right:1px solid #818181; border-bottom:1px solid #818181;" class="headtd">&nbsp;</td>
                    <td style ="width:10%; border-right:1px solid #818181; border-bottom:1px solid #818181; text-align:center; font-weight:bold" class="headtd">Rate</td>
                    <td style ="width:10%; border-right:1px solid #818181; border-bottom:1px solid #818181; text-align:center; font-weight:bold" class="headtd">Gross Amt.</td>
                    <td style ="width:10%; border-right:1px solid #818181; border-bottom:1px solid #818181; text-align:center; font-weight:bold" class="headtd">Tax</td>
                    <td style ="width:10%; border-right:1px solid #818181; border-bottom:1px solid #818181; text-align:center; font-weight:bold" class="headtd">Tax Amt</td>
                    <td style ="width:10%; border-right:1px solid #818181; border-bottom:1px solid #818181; text-align:center; font-weight:bold" class="headtd">Item Amt</td>
                    <td style ="width:10%; border-right:1px solid #818181; border-bottom:1px solid #818181; text-align:center; font-weight:bold" class="headtd">Sale Ledger</td>                                                                       
                    <td style ="width:10%; border-bottom:1px solid #818181; text-align:center; font-weight:bold" class="headtd">Tax Ledger</td>                        
                </tr>
            </table>
        </asp:Panel>
    </div>
    </form>
</body>
</html>

<%--http://dis-server/accounts/Main/Inventory/PurchaseReturnedit.aspx--%>